# A = 100
# B = 150
# C = float(A) + float (B)
# print('数字求和为:%d' %C)
import math


# print(math.sin(3))
# print(math.hypot(3,4))
# print(math.sqrt(6))
# print(math.pow(2,8))


# f1 = 1.23
# print("F1:",f1)
# print("f1Type:",type(f1))
# f2 = 123.987654321
# print("f2:",f2)
# print("f2Type:",type(f2))
#
# f3 = 1.2e5
# print("f3:", f3)
# print("f3Type: ", type(f3))
# f4 = 1.23 * 0.1
# print("f4: ", f4)
# print("f4Type:",type(f4))


# bool 类型
# b1 = True
# b2 = False
# print (b1,b2)
# print(type(b1))
# print(type(b2))


# 类型转化
# print(bin(60))
# print(oct(60))
# print(hex(60))

# int将整数 将浮点数 字符串 转换为十进制
# print(int(6.8))
# float 将整数 浮点数 字符串转化为浮点类型
# print(float(6))
# str 将整数 浮点数 转换为字符串类型
# print(str(60))


# a = 520
# b = 99
# print(a + b) 加法
# print(a - b) 减法
# print(a * b) 乘法
# print(a / b) 除法
# print(a // b) 整除运算
# print(a % b) 除法的余数
# print(a ** b) 次方


# 赋值运算
# a = 8 直接赋值
# a += 2  相当于a=a+2
# print(a)
# a -= 2 相当于a=a-2
# print(a)
# a *= 2 相当于a=a*2
# print(a)
# a /= 2 相当于a=a/2
# print(a)

#  比较运算符使用 == ！=  < > <= >=
# a = 8
# b = 9
# print(a == b)
# print(a != b)
# print(a > b )
# print(a < b )
# print(a >= b)
# print(a <= b )


# 逻辑运算符使用
# print(True and False)
# print(True and True)
# print(True or False)
# print(not False)


# 成员运算符使用所示
# str1 = 'hello'
# print('h' in str1)
# print('a' in str1)
# print('c' not in str1)
# print('o' not in str1)